import { ITEM_RARITY, type ItemRarity } from '../game/data/item/type';

export function rarityTextColorClass(rarity: ItemRarity | undefined) {
  switch (rarity) {
    case ITEM_RARITY.INFERIOR:
      return 'rarity-inferior-text-color';
    case ITEM_RARITY.MEDIUM:
      return 'rarity-medium-text-color';
    case ITEM_RARITY.SUPERIOR:
      return 'rarity-superior-text-color';
    case ITEM_RARITY.SUPREME:
      return 'rarity-supreme-text-color';
    case ITEM_RARITY.IMMORTAL:
      return 'rarity-immortal-text-color';
    case ITEM_RARITY.PERFECT:
      return 'rarity-perfect-text-color';
    case ITEM_RARITY.INNATE:
      return 'rarity-innate-text-color';
    case ITEM_RARITY.TREASURE:
      return 'rarity-treasure-text-color';
    default:
      return 'rarity-common-text-color';
  }
}
